package com.wanghai.carwashing.core.form;

import com.wanghai.carwashing.common.util.ValidationUtil;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * SmsCodeForm
 * @author 王海
 */
public class SmsCodeForm {
    // 手机号码
    @NotNull(message = "请输入正确的手机号码")
    @Pattern(regexp = ValidationUtil.REGEX_CELLPHONE, message = "请输入正确的手机号码")
    private String phone;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
